<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
    	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    	<link rel="icon" type="image/png" href="img/favicon.png" sizes="16x16">
		<title>阿噹共享汽车-地勤车况系统</title>
		<link rel="stylesheet" href="libs/wuui/weui.min.css" />
		<style type="text/css">
			#backSuccessUrl{
				color: #333;
			    font-size: 16px;
			    background: #d4f2fd;
			}
			#backSuccessUrl:active{
				background:#d4f2fd;
			}
		</style>
	</head>

	<body ontouchstart>
		
		<div class="page js_show">
	    	<!--操作成功 start-->
		    <div class="weui-msg msg-success" style="display: none;">
		        <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
		        <div class="weui-msg__text-area">
		            <h2 class="weui-msg__title">操作成功</h2>
		            <p class="weui-msg__desc" id="successMessage"></p>
		        </div>
		        <div class="weui-msg__opr-area">
		            <p class="weui-btn-area">
		                <a id="backSuccessUrl" href="index.html" class="weui-btn weui-btn_primary"></a>
		            </p>
		        </div>
		        <div class="weui-msg__extra-area">
		            <div class="weui-footer">
		                <p class="weui-footer__text">Copyright &copy; 广州途宽汽车服务有限公司</p>
		            </div>
		        </div>
		    </div>
		    <!--操作成功 end-->
		    <!--操作失败 start-->
		    <div class="weui-msg msg-fail" style="display: none;">
		        <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
		        <div class="weui-msg__text-area">
		            <h2 class="weui-msg__title">操作失败</h2>
		            <p class="weui-msg__desc" id="failMessage"></p>
		        </div>
		        <div class="weui-msg__opr-area">
		            <p class="weui-btn-area">
		                <a id="backFailUrl" href="javascript:history.go(-1);" class="weui-btn weui-btn_primary"></a>
		                <a href="index.html" class="weui-btn weui-btn_default">返回主页</a>
		            </p>
		        </div>
		        <div class="weui-msg__extra-area">
		            <div class="weui-footer">
		                <p class="weui-footer__text">Copyright &copy; 广州途宽汽车服务有限公司</p>
		            </div>
		        </div>
		    </div>
		    <!--操作失败 end-->
		</div>
		
		<script type="text/javascript" src="libs/jquery-2.2.3.min.js" charset="UTF-8"></script>
		<!--weui.js需要在body里面加载才起作用-->
		<script type="text/javascript" src="libs/weui.js/weui.min.js" charset="UTF-8"></script>
		<script type="text/javascript" src="js/app.js" charset="UTF-8"></script>
		<script type="text/javascript">
		$(function(){
			var status = app.getRequestParam('status'),
				backUrl = app.getRequestParam('backUrl'),
				backTitle = app.getRequestParam('backTitle'),
				message = app.getRequestParam('message'),
				$backSuccessUrl = $('#backSuccessUrl')
				$backFailUrl = $('#backFailUrl'),
				$successMessage = $('#successMessage')
				$failMessage = $('#failMessage');
			//上传失败
			if(status == 2) {
				if(null != backUrl && '' != backUrl) {
					$backFailUrl.attr('href', backUrl)
				}
				$backFailUrl.text(backTitle);
				$failMessage.html(message);
				$('.msg-fail').show();
			} else {
				$('.msg-success').show();
				if(null != backUrl && '' != backUrl) {
					$backSuccessUrl.attr('href', backUrl)
				}
				$backSuccessUrl.text(backTitle);
				$successMessage.html(message);
			}
		});
		</script>
	</body>

</html>